package net.whzjkj.gateway.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 车辆状态
 */
@Data
@Accessors(chain = true)
public class ObdVehicleStatus extends Model<ObdVehicleStatus> {

	@TableId(value = "id", type = IdType.ID_WORKER_STR)
	private String id;
	
	@ApiModelProperty("车辆id")
	private String vehicleId;
	
	@ApiModelProperty("纬度")
	private BigDecimal latitude;
	
	@ApiModelProperty("经度")
	private BigDecimal longitude;
	
	@ApiModelProperty("纠偏后纬度")
	private BigDecimal corlat;
	
	@ApiModelProperty("纠偏后经度")
	private BigDecimal corlong;
	
	@ApiModelProperty("定位地址")
	private String localtion;
	
	@ApiModelProperty("定位时间")
	private Date localtionTime;
	
	@ApiModelProperty("转速")
	private BigDecimal rotation;
	
	@ApiModelProperty("速度")
	private BigDecimal speed;
	
	@ApiModelProperty("方向")
	private BigDecimal direction;
	
	@ApiModelProperty("水温")
	private BigDecimal temperature;
	
	@ApiModelProperty("节气门开度")
	private BigDecimal throttle;
	
	@ApiModelProperty("当前行程耗油量")
	private BigDecimal oil;
	
	@ApiModelProperty("里程表总里程")
	private BigDecimal totalMileage;
	
	@ApiModelProperty("里程表分里程")
	private BigDecimal subMileage;
	
	@ApiModelProperty("当前电压")
	private BigDecimal voltage;
	
	@ApiModelProperty("车辆状态(1-在线  2-离线)")
	private Integer vehicleStatus;
	
	@ApiModelProperty("行程id")
	private String vehicleTrackId;
	
	@ApiModelProperty("故障代码")
	private String faultCode;
	
	@ApiModelProperty("是否定位（1-有效定位 2-无效定位）")
	private Integer position;
	
	@ApiModelProperty("最后行程结束时间")
	private Date trackTime;
	
	private Integer status;
	
	private Date createTime;
	
	private Date updateTime;
	
}